package com.corn.controller;

import com.corn.dao.SlowQueryDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author : Jim Wu
 * @version 1.0
 * @function :
 * @since : 2021/5/11 11:59
 */
@RestController
@RequestMapping("test")
public class SlowQueryController {

    @Autowired
    private SlowQueryDao dao;

    @GetMapping("slow")
    public void slow() {
        dao.slow();
    }

}
